<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Block Configuration Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__seglcd__functions__config.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Block Configuration Functions<div class="ingroups"><a class="el" href="group__group__seglcd.html">SegLCD       (Segment LCD)</a> &raquo; <a class="el" href="group__group__seglcd__functions.html">Functions</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gae5bce733739f6bbe0a2aa9d2959f2a50"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__seglcd__enums.html#gaf81660a051e97187b6617ae3f709b047">cy_en_seglcd_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__seglcd__functions__config.html#gae5bce733739f6bbe0a2aa9d2959f2a50">Cy_SegLCD_Init</a> (LCD_Type *base, <a class="el" href="structcy__stc__seglcd__config__t.html">cy_stc_seglcd_config_t</a> const *config)</td></tr>
<tr class="memdesc:gae5bce733739f6bbe0a2aa9d2959f2a50"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes/restores the default Segment LCD block configuration.  <a href="#gae5bce733739f6bbe0a2aa9d2959f2a50">More...</a><br /></td></tr>
<tr class="separator:gae5bce733739f6bbe0a2aa9d2959f2a50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga73c8ea0f6e72d690a34c1ad175ff21aa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__seglcd__enums.html#gaf81660a051e97187b6617ae3f709b047">cy_en_seglcd_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__seglcd__functions__config.html#ga73c8ea0f6e72d690a34c1ad175ff21aa">Cy_SegLCD_Contrast</a> (LCD_Type *base, uint32_t contrast, <a class="el" href="structcy__stc__seglcd__config__t.html">cy_stc_seglcd_config_t</a> *config)</td></tr>
<tr class="memdesc:ga73c8ea0f6e72d690a34c1ad175ff21aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a specified contrast.  <a href="#ga73c8ea0f6e72d690a34c1ad175ff21aa">More...</a><br /></td></tr>
<tr class="separator:ga73c8ea0f6e72d690a34c1ad175ff21aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga60b86978cdba06fe799591e0822dcc55"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__seglcd__functions__config.html#ga60b86978cdba06fe799591e0822dcc55">Cy_SegLCD_Deinit</a> (LCD_Type *base)</td></tr>
<tr class="memdesc:ga60b86978cdba06fe799591e0822dcc55"><td class="mdescLeft">&#160;</td><td class="mdescRight">De-initializes the LCD block (resets the block registers to default state).  <a href="#ga60b86978cdba06fe799591e0822dcc55">More...</a><br /></td></tr>
<tr class="separator:ga60b86978cdba06fe799591e0822dcc55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga55eb3d853498593da4eb3cddaca073df"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__seglcd__functions__config.html#ga55eb3d853498593da4eb3cddaca073df">Cy_SegLCD_Enable</a> (LCD_Type *base)</td></tr>
<tr class="memdesc:ga55eb3d853498593da4eb3cddaca073df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the Segment LCD block.  <a href="#ga55eb3d853498593da4eb3cddaca073df">More...</a><br /></td></tr>
<tr class="separator:ga55eb3d853498593da4eb3cddaca073df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafca1fc7166fcf468d61813ec0507fd7d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__seglcd__functions__config.html#gafca1fc7166fcf468d61813ec0507fd7d">Cy_SegLCD_Disable</a> (LCD_Type *base)</td></tr>
<tr class="memdesc:gafca1fc7166fcf468d61813ec0507fd7d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the Segment LCD block.  <a href="#gafca1fc7166fcf468d61813ec0507fd7d">More...</a><br /></td></tr>
<tr class="separator:gafca1fc7166fcf468d61813ec0507fd7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="gae5bce733739f6bbe0a2aa9d2959f2a50"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae5bce733739f6bbe0a2aa9d2959f2a50">&#9670;&nbsp;</a></span>Cy_SegLCD_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__seglcd__enums.html#gaf81660a051e97187b6617ae3f709b047">cy_en_seglcd_status_t</a> Cy_SegLCD_Init </td>
          <td>(</td>
          <td class="paramtype">LCD_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__seglcd__config__t.html">cy_stc_seglcd_config_t</a> const *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes/restores the default Segment LCD block configuration. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The base pointer to the LCD instance registers. </td></tr>
    <tr><td class="paramname">config</td><td>The pointer to a configuration structure. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__seglcd__enums.html#gaf81660a051e97187b6617ae3f709b047">cy_en_seglcd_status_t</a>.</dd></dl>
<p>Side Effects: The block is disabled to change the settings.</p>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"><span class="comment">/* Scenario: Enable an LCD block */</span></div><div class="line"></div><div class="line"><a class="code" href="structcy__stc__seglcd__config__t.html">cy_stc_seglcd_config_t</a> config =</div><div class="line">{</div><div class="line">    .<a class="code" href="structcy__stc__seglcd__config__t.html#a1be9b9b30d3113fe5c2ce54e6b837740">speed</a> = <a class="code" href="group__group__seglcd__enums.html#ggab22a15df01ec018165a1a7e812f70bb0a280e1ebe0dce993105ffd2d6209055bb">CY_SEGLCD_SPEED_HIGH</a>,</div><div class="line">    .wave = <a class="code" href="group__group__seglcd__enums.html#gga255aa427b265f88cc6e618cdc5491248a5c1a7cd720aedee901d6527dd617f57b">CY_SEGLCD_TYPE_B</a>,</div><div class="line">    .drive = <a class="code" href="group__group__seglcd__enums.html#ggaff012223bec16a8c88dfdb39bd304893a1e4f051430063f293bdfc4ddbe32a27f">CY_SEGLCD_PWM</a>,</div><div class="line">    .bias = <a class="code" href="group__group__seglcd__enums.html#gga2b57420866b0307ca04c1e033790661ca3bac132675f4842763ee46417d83f3a1">CY_SEGLCD_BIAS_FOURTH</a>,</div><div class="line">    .lsClk = <a class="code" href="group__group__seglcd__enums.html#gga4e8bfe5d2149ea8d82ac609367709c95abadf62ab3037855e61b95e5a13be87bb">CY_SEGLCD_LSCLK_LF</a>,</div><div class="line">    .comNum = 8,</div><div class="line">    .frRate = 70,</div><div class="line">    .contrast = 70,</div><div class="line">  <span class="comment">/*.clkFreq is unknown here */</span></div><div class="line">};</div><div class="line"></div><div class="line"><span class="keyword">const</span> uint32_t commons[8] =</div><div class="line">{</div><div class="line">    <a class="code" href="group__group__seglcd__macros.html#ga5da32950a854641868e98c302afe2fe5">CY_SEGLCD_COMMON</a>(LCD_COM_0, 0UL),</div><div class="line">    <a class="code" href="group__group__seglcd__macros.html#ga5da32950a854641868e98c302afe2fe5">CY_SEGLCD_COMMON</a>(LCD_COM_1, 1UL),</div><div class="line">    <a class="code" href="group__group__seglcd__macros.html#ga5da32950a854641868e98c302afe2fe5">CY_SEGLCD_COMMON</a>(LCD_COM_2, 2UL),</div><div class="line">    <a class="code" href="group__group__seglcd__macros.html#ga5da32950a854641868e98c302afe2fe5">CY_SEGLCD_COMMON</a>(LCD_COM_3, 3UL),</div><div class="line">    <a class="code" href="group__group__seglcd__macros.html#ga5da32950a854641868e98c302afe2fe5">CY_SEGLCD_COMMON</a>(LCD_COM_4, 4UL),</div><div class="line">    <a class="code" href="group__group__seglcd__macros.html#ga5da32950a854641868e98c302afe2fe5">CY_SEGLCD_COMMON</a>(LCD_COM_5, 5UL),</div><div class="line">    <a class="code" href="group__group__seglcd__macros.html#ga5da32950a854641868e98c302afe2fe5">CY_SEGLCD_COMMON</a>(LCD_COM_6, 6UL),</div><div class="line">    <a class="code" href="group__group__seglcd__macros.html#ga5da32950a854641868e98c302afe2fe5">CY_SEGLCD_COMMON</a>(LCD_COM_7, 7UL)</div><div class="line">};</div></div><!-- fragment --><div class="fragment"><div class="line">    <span class="comment">/* Then in executable code: */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Get the frequency of the assigned peripheral clock divider */</span></div><div class="line">    config.<a class="code" href="structcy__stc__seglcd__config__t.html#ad72440f94cfffb60d7223157722e5769">clkFreq</a>  = <a class="code" href="group__group__sysclk__clk__peripheral__funcs.html#ga366428a7c17da00f7a7ae025aeda2e23">Cy_SysClk_PeriphGetFrequency</a>(<a class="code" href="group__group__sysclk__clk__peripheral__enums.html#gga06138349be16d91fd5d00ded2f4592b8ad2299deae6e36a070de5a60368b319ad">CY_SYSCLK_DIV_8_BIT</a>, 0U);</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__seglcd__enums.html#ggaf81660a051e97187b6617ae3f709b047a3fac00a061e1cd84f5e0e13289944cb7">CY_SEGLCD_SUCCESS</a> == <a class="code" href="group__group__seglcd__functions__config.html#gae5bce733739f6bbe0a2aa9d2959f2a50">Cy_SegLCD_Init</a>(LCD0, &amp;config))</div><div class="line">    {</div><div class="line">        <span class="keywordflow">if</span> (<a class="code" href="group__group__seglcd__enums.html#ggaf81660a051e97187b6617ae3f709b047a3fac00a061e1cd84f5e0e13289944cb7">CY_SEGLCD_SUCCESS</a> == <a class="code" href="group__group__seglcd__functions__frame.html#ga7f6bb5486ade2f8fe07ae883b1e59be2">Cy_SegLCD_ClrFrame</a>(LCD0, commons))</div><div class="line">        {</div><div class="line">            <a class="code" href="group__group__seglcd__functions__config.html#ga55eb3d853498593da4eb3cddaca073df">Cy_SegLCD_Enable</a>(LCD0);</div><div class="line">            </div><div class="line">           <span class="comment">/* Now the block generates LCD signals (all the pixels are off) and is ready to turn on any pixel</span></div><div class="line"><span class="comment">            * (or many pixels) using any of the frame/pixel/character/display management API functions.</span></div><div class="line"><span class="comment">            */</span></div><div class="line">        }</div><div class="line">        <span class="keywordflow">else</span></div><div class="line">        {</div><div class="line">            <span class="comment">/* error handling */</span></div><div class="line">        }</div><div class="line">    }</div><div class="line">    <span class="keywordflow">else</span></div><div class="line">    {</div><div class="line">        <span class="comment">/* error handling */</span></div><div class="line">    }</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga73c8ea0f6e72d690a34c1ad175ff21aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga73c8ea0f6e72d690a34c1ad175ff21aa">&#9670;&nbsp;</a></span>Cy_SegLCD_Contrast()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__seglcd__enums.html#gaf81660a051e97187b6617ae3f709b047">cy_en_seglcd_status_t</a> Cy_SegLCD_Contrast </td>
          <td>(</td>
          <td class="paramtype">LCD_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>contrast</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcy__stc__seglcd__config__t.html">cy_stc_seglcd_config_t</a> *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets a specified contrast. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The base pointer to the LCD instance registers. </td></tr>
    <tr><td class="paramname">contrast</td><td>The contrast value to be set. </td></tr>
    <tr><td class="paramname">config</td><td>The pointer to a configuration structure. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__group__seglcd__enums.html#gaf81660a051e97187b6617ae3f709b047">cy_en_seglcd_status_t</a>.</dd></dl>
<p>Side Effects: The configuration structure contrast value is also updated.</p>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    uint32_t contrast = 70UL; <span class="comment">/* Contrast value from 0 to 100 */</span></div></div><!-- fragment --><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Adjust the LCD contrast */</span></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__seglcd__enums.html#ggaf81660a051e97187b6617ae3f709b047a3fac00a061e1cd84f5e0e13289944cb7">CY_SEGLCD_SUCCESS</a> != <a class="code" href="group__group__seglcd__functions__config.html#ga73c8ea0f6e72d690a34c1ad175ff21aa">Cy_SegLCD_Contrast</a>(LCD0, contrast, &amp;config))</div><div class="line">    {</div><div class="line">        <span class="comment">/* error handling */</span></div><div class="line">    }</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga60b86978cdba06fe799591e0822dcc55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga60b86978cdba06fe799591e0822dcc55">&#9670;&nbsp;</a></span>Cy_SegLCD_Deinit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SegLCD_Deinit </td>
          <td>(</td>
          <td class="paramtype">LCD_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>De-initializes the LCD block (resets the block registers to default state). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The base pointer to the LCD instance registers.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Reset all the block registers to their default values */</span></div><div class="line">    <a class="code" href="group__group__seglcd__functions__config.html#ga60b86978cdba06fe799591e0822dcc55">Cy_SegLCD_Deinit</a>(LCD0);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga55eb3d853498593da4eb3cddaca073df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga55eb3d853498593da4eb3cddaca073df">&#9670;&nbsp;</a></span>Cy_SegLCD_Enable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SegLCD_Enable </td>
          <td>(</td>
          <td class="paramtype">LCD_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the Segment LCD block. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The base pointer to the LCD instance registers.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"><span class="comment">/* Scenario: Enable an LCD block */</span></div><div class="line"></div><div class="line"><a class="code" href="structcy__stc__seglcd__config__t.html">cy_stc_seglcd_config_t</a> config =</div><div class="line">{</div><div class="line">    .<a class="code" href="structcy__stc__seglcd__config__t.html#a1be9b9b30d3113fe5c2ce54e6b837740">speed</a> = <a class="code" href="group__group__seglcd__enums.html#ggab22a15df01ec018165a1a7e812f70bb0a280e1ebe0dce993105ffd2d6209055bb">CY_SEGLCD_SPEED_HIGH</a>,</div><div class="line">    .wave = <a class="code" href="group__group__seglcd__enums.html#gga255aa427b265f88cc6e618cdc5491248a5c1a7cd720aedee901d6527dd617f57b">CY_SEGLCD_TYPE_B</a>,</div><div class="line">    .drive = <a class="code" href="group__group__seglcd__enums.html#ggaff012223bec16a8c88dfdb39bd304893a1e4f051430063f293bdfc4ddbe32a27f">CY_SEGLCD_PWM</a>,</div><div class="line">    .bias = <a class="code" href="group__group__seglcd__enums.html#gga2b57420866b0307ca04c1e033790661ca3bac132675f4842763ee46417d83f3a1">CY_SEGLCD_BIAS_FOURTH</a>,</div><div class="line">    .lsClk = <a class="code" href="group__group__seglcd__enums.html#gga4e8bfe5d2149ea8d82ac609367709c95abadf62ab3037855e61b95e5a13be87bb">CY_SEGLCD_LSCLK_LF</a>,</div><div class="line">    .comNum = 8,</div><div class="line">    .frRate = 70,</div><div class="line">    .contrast = 70,</div><div class="line">  <span class="comment">/*.clkFreq is unknown here */</span></div><div class="line">};</div><div class="line"></div><div class="line"><span class="keyword">const</span> uint32_t commons[8] =</div><div class="line">{</div><div class="line">    <a class="code" href="group__group__seglcd__macros.html#ga5da32950a854641868e98c302afe2fe5">CY_SEGLCD_COMMON</a>(LCD_COM_0, 0UL),</div><div class="line">    <a class="code" href="group__group__seglcd__macros.html#ga5da32950a854641868e98c302afe2fe5">CY_SEGLCD_COMMON</a>(LCD_COM_1, 1UL),</div><div class="line">    <a class="code" href="group__group__seglcd__macros.html#ga5da32950a854641868e98c302afe2fe5">CY_SEGLCD_COMMON</a>(LCD_COM_2, 2UL),</div><div class="line">    <a class="code" href="group__group__seglcd__macros.html#ga5da32950a854641868e98c302afe2fe5">CY_SEGLCD_COMMON</a>(LCD_COM_3, 3UL),</div><div class="line">    <a class="code" href="group__group__seglcd__macros.html#ga5da32950a854641868e98c302afe2fe5">CY_SEGLCD_COMMON</a>(LCD_COM_4, 4UL),</div><div class="line">    <a class="code" href="group__group__seglcd__macros.html#ga5da32950a854641868e98c302afe2fe5">CY_SEGLCD_COMMON</a>(LCD_COM_5, 5UL),</div><div class="line">    <a class="code" href="group__group__seglcd__macros.html#ga5da32950a854641868e98c302afe2fe5">CY_SEGLCD_COMMON</a>(LCD_COM_6, 6UL),</div><div class="line">    <a class="code" href="group__group__seglcd__macros.html#ga5da32950a854641868e98c302afe2fe5">CY_SEGLCD_COMMON</a>(LCD_COM_7, 7UL)</div><div class="line">};</div></div><!-- fragment --><div class="fragment"><div class="line">    <span class="comment">/* Then in executable code: */</span></div><div class="line"></div><div class="line">    <span class="comment">/* Get the frequency of the assigned peripheral clock divider */</span></div><div class="line">    config.<a class="code" href="structcy__stc__seglcd__config__t.html#ad72440f94cfffb60d7223157722e5769">clkFreq</a>  = <a class="code" href="group__group__sysclk__clk__peripheral__funcs.html#ga366428a7c17da00f7a7ae025aeda2e23">Cy_SysClk_PeriphGetFrequency</a>(<a class="code" href="group__group__sysclk__clk__peripheral__enums.html#gga06138349be16d91fd5d00ded2f4592b8ad2299deae6e36a070de5a60368b319ad">CY_SYSCLK_DIV_8_BIT</a>, 0U);</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__seglcd__enums.html#ggaf81660a051e97187b6617ae3f709b047a3fac00a061e1cd84f5e0e13289944cb7">CY_SEGLCD_SUCCESS</a> == <a class="code" href="group__group__seglcd__functions__config.html#gae5bce733739f6bbe0a2aa9d2959f2a50">Cy_SegLCD_Init</a>(LCD0, &amp;config))</div><div class="line">    {</div><div class="line">        <span class="keywordflow">if</span> (<a class="code" href="group__group__seglcd__enums.html#ggaf81660a051e97187b6617ae3f709b047a3fac00a061e1cd84f5e0e13289944cb7">CY_SEGLCD_SUCCESS</a> == <a class="code" href="group__group__seglcd__functions__frame.html#ga7f6bb5486ade2f8fe07ae883b1e59be2">Cy_SegLCD_ClrFrame</a>(LCD0, commons))</div><div class="line">        {</div><div class="line">            <a class="code" href="group__group__seglcd__functions__config.html#ga55eb3d853498593da4eb3cddaca073df">Cy_SegLCD_Enable</a>(LCD0);</div><div class="line">            </div><div class="line">           <span class="comment">/* Now the block generates LCD signals (all the pixels are off) and is ready to turn on any pixel</span></div><div class="line"><span class="comment">            * (or many pixels) using any of the frame/pixel/character/display management API functions.</span></div><div class="line"><span class="comment">            */</span></div><div class="line">        }</div><div class="line">        <span class="keywordflow">else</span></div><div class="line">        {</div><div class="line">            <span class="comment">/* error handling */</span></div><div class="line">        }</div><div class="line">    }</div><div class="line">    <span class="keywordflow">else</span></div><div class="line">    {</div><div class="line">        <span class="comment">/* error handling */</span></div><div class="line">    }</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gafca1fc7166fcf468d61813ec0507fd7d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gafca1fc7166fcf468d61813ec0507fd7d">&#9670;&nbsp;</a></span>Cy_SegLCD_Disable()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cy_SegLCD_Disable </td>
          <td>(</td>
          <td class="paramtype">LCD_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the Segment LCD block. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The base pointer to the LCD instance registers.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Stop the LCD signal generation */</span></div><div class="line">    <a class="code" href="group__group__seglcd__functions__config.html#gafca1fc7166fcf468d61813ec0507fd7d">Cy_SegLCD_Disable</a>(LCD0);</div></div><!-- fragment --></dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
